package com.qboot.generate.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qboot.generate.entity.GenModule;
import com.qboot.generate.mapper.GenModuleMapper;
import com.qboot.generate.service.GenModuleService;
import com.qboot.generate.vo.GenModuleVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 模块 接口实现类
 *
 * @author Tellsea
 * @date 2023-02-08
 */
@Service
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class GenModuleServiceImpl extends ServiceImpl<GenModuleMapper, GenModule> implements GenModuleService {

    @Override
    public Page<GenModuleVo> queryList(Page page, GenModuleVo entity) {
        return this.baseMapper.queryList(page, entity);
    }

    @Override
    public GenModuleVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
